// web/src/lib/auth.ts
import {auth} from '@/auth'

// 服务端用
export const currentUser = async () => {
    const session = await auth()

    return session?.user
}

export const currentRole = async () => {
    const session = await auth()

    return session?.user?.role
}